package org.microservice.common.base;

import org.microservice.common.util.R;
import org.springframework.web.bind.annotation.RequestBody;

import java.io.Serializable;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: 齐丹枫
 * Date: 2018/8/9
 * Time: 13:58
 * To change this template use File | Settings | File Templates.
 * Description:
 */
public interface BaseController<T> {


    R getListPage(@RequestBody Map<String,Object> params);


    R update(@RequestBody T t);


    R save(@RequestBody T t);


    R getById( Serializable id);



    R deleteById(Serializable id);



}
